package com.csd.dao;/*
 * Description:
 * User:Hello，Mr.Zhou
 * Date:2020-12-22
 * Time:16:39
 *
 * */

import com.csd.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/*
*   有关用户的操作
* */
public interface UserDao {
    //注册添加用户
    int addUser(SysUser user);
    //根据账号密码查询用户
    SysUser findUserByTelAndPassword(@Param("tel") String tel,@Param("password") String password);
    //ajax异步查询用户是否存在
    SysUser findUserByTel(String tel);

    List<SysUser> findAllSysUser();

    SysUser finduserById(int id);

    int delUserById(int id);

    int updateSysUser(SysUser sysUser);
}
